<?php 

###########################################################################
#   Copyright (C) 2012 CDNPAL LTD by Christopher Gu                       #
#   resources@cdnpal.com                                                  #
#                                                                         #
#   coded for Php 4.3/5.X and above                                       #
#   and AllowOverride all for .htaccess                                   #
#                                                                         #
#   This program is free software released                                #
#   under the GPL version 2 license:                                      #
#   http://www.gnu.org/licenses/gpl-2.0.htm                               #
#                                                                         #
#   This program is distributed WITHOUT ANY WARRANTY                      #
#   or FITNESS FOR A PARTICULAR PURPOSE.                                  #
#                                                                         #
#   DADF-SDK                                                              #
#                                                                         #
###########################################################################

class EncryptUtils {
	
	public static function encrypt_pass($password) {

		$blowfish = new Blowfish(ENCRYPT_KEY);
		return $blowfish->encrypt($password);
	}
	
	public static function decrypt_pass($encrypted_password) {

		$blowfish = new Blowfish(ENCRYPT_KEY);
		return $blowfish->decrypt($encrypted_password);
	}
	
};